package ${package.Service};

import ${package.Entity}.${entity};
import ${superServiceClassPackage};
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.List;

/**
* <p>
    * ${table.comment!} 服务类
    * </p>
*
* @author ${author}
* @since ${date}
*/
<#if kotlin>
    interface ${table.serviceName} : ${superServiceClass}<${entity}>
<#else>
    public interface ${table.serviceName} extends ${superServiceClass}<${entity}> {

<#-- 获取主键字段信息 -->
    <#assign keyField = table.fields[0]>
    <#list table.fields as field>
        <#if field.keyFlag>
            <#assign keyField = field>
            <#break>
        </#if>
    </#list>

    /**
    * 根据条件分页查询${table.comment!}
    *
    * @param page 分页对象
    * @param queryWrapper 查询条件
    * @return 分页结果
    */
    IPage<${entity}> pageWithCondition(Page<${entity}> page, QueryWrapper<${entity}> queryWrapper);

    }
</#if>